import {App} from 'vue'
import {createPinia} from 'pinia'

 //引入持久化插件
 import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

 export default function setupPinia(app:App){
 const store=  createPinia()
 store.use(piniaPluginPersistedstate)
    app.use(store)
}